<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
	'prefix' => config('admin.route.prefix'),
	'namespace' => config('admin.route.namespace'),
	'middleware' => config('admin.route.middleware'),
], function (Router $router) {

	$router->get('/', 'HomeController@index')->name('admin.home');
	$router->resource('/goods', 'GoodController');
	$router->get('/goodChart', 'GoodChartController@index')->name('admin.good.chart');
	$router->resource('/shopRank', 'ShopRankController')->only('index', 'show');
	$router->resource('/goodCollection', 'GoodCollectionController')->only(['index', 'update']);
	$router->resource('/goods/shop/topBook', 'ShopTopBookController');
	$router->resource('/gather/shop', 'GraspGoodController');
	$router->post('/gather/post', 'GraspGoodController@post')->name('gather.post');
	$router->get('/isbn/list', 'BookIsbnController@index')->name('isbn.index');
	$router->get('douban/image', 'BookIsbnController@doubanImg')->name('douban.img');
	$router->resource('/topBook', 'TopBookController');
	//到货提醒
	$router->get('/gather/carts', 'CartController@index');
	//同步多抓鱼购物车
    $router->post('/cart/post','CartController@post');

});
